package com.cy.mall.dao.mapper.brand;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.cy.mall.model.domain.brand.Brand;
import com.cy.mall.model.query.brand.BrandListQuery;
import com.cy.mall.model.vo.brand.BrandDetailVO;
import com.cy.mall.model.vo.brand.BrandListVO;
import com.cy.mall.model.vo.brand.EnableBrandListVO;

import tk.mybatis.mapper.common.BaseMapper;

/**
 * 品牌 BrandMapper
 *
 * @author tanyilin
 *
 * @create 2019年1月23日 下午4:14:29
 */
@Mapper
public interface BrandMapper extends BaseMapper<Brand> {

	int selectBrandListCount(BrandListQuery query);

	List<BrandListVO> selectBrandList(BrandListQuery query);

	/**
	 * 品牌详情
	 * 
	 * @param brandId
	 * @return
	 */
	BrandDetailVO selectBrandDetail(@Param("brandId") Long brandId);

	/**
	 * 查询所有启用状态的品牌列表
	 * 
	 * @return
	 */
	List<EnableBrandListVO> selectAllEnableBrandList();

}
